package com.grj.service.redis.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.grj.service.redis.entity.Voucher;
import com.grj.service.redis.service.VoucherService;
import com.grj.service.redis.mapper.VoucherMapper;
import org.springframework.stereotype.Service;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/**
* @author 14505
* @description 针对表【voucher】的数据库操作Service实现
* @createDate 2023-12-19 04:14:34
*/
@Service
public class VoucherServiceImpl extends ServiceImpl<VoucherMapper, Voucher>
    implements VoucherService{

    public static void main(String[] args) throws Exception {
        FileOutputStream fileOutputStream = new FileOutputStream("C:\\Users\\14505\\Desktop\\token.txt", true);
        for (int i = 1; i <= 10000; i++) {
            System.out.println(i);
            fileOutputStream.write((i + "\n").getBytes());
        }
        fileOutputStream.close();
    }
}




